package com.xiaodimall.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wyc
 * @description
 * @ClassName JsonResult
 * @date 2022/11/15 14:41
 * 统一返回需要的json数据格式
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult {
    private Integer state;//状态
    private String Message;//提示信息
    private Object data;//封装数据

    public JsonResult(Integer state, String Message) {
        this.state = state;
        this.Message = Message;
    }

    public JsonResult(Integer state, Object data) {
        this.state = state;
        this.data = data;
    }
}
